home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Tool Chest / Development Tools & Languages / Dylan Related / Mindy-1.1 (sources only) / mindy-1.1 / interp / GNUmakefile < prev    next >
Encoding:
Makefile  |  1994-06-29  |  2.2 KB  |  82 lines  |  [TEXT/ttxt]

  1. ######################################################################
  2. ##
  3. ## Copyright (c) 1994  Carnegie Mellon University
  4. ## All rights reserved.
  5. ## 
  6. ## Use and copying of this software and preparation of derivative
  7. ## works based on this software are permitted, including commercial
  8. ## use, provided that the following conditions are observed:
  9. ## 
  10. ## 1. This copyright notice must be retained in full on any copies
  11. ##    and on appropriate parts of any derivative works.
  12. ## 2. Documentation (paper or online) accompanying any system that
  13. ##    incorporates this software, or any part of it, must acknowledge
  14. ##    the contribution of the Gwydion Project at Carnegie Mellon
  15. ##    University.
  16. ## 
  17. ## This software is made available "as is".  Neither the authors nor
  18. ## Carnegie Mellon University make any warranty about the software,
  19. ## its performance, or its conformity to any specification.
  20. ## 
  21. ## Bug reports, questions, comments, and suggestions should be sent by
  22. ## E-mail to the Internet address "gwydion-bugs@cs.cmu.edu".
  23. ##
  24. ######################################################################
  25. ##
  26. ##  $Header: GNUmakefile,v 1.14 94/06/29 03:34:16 wlott Exp $
  27. ##
  28. ##  This is the makefile for the Mindy byte-interpreter.
  29. ##
  30.  
  31. include ../Config
  32.  
  33. CPPFLAGS = -I.
  34.  
  35. OBJS = bool.o class.o coll.o debug.o def.o error.o func.o gc.o init.o \
  36.     interp.o list.o lose.o mindy.o misc.o module.o nlx.o num.o \
  37.     obj.o print.o str.o sym.o thread.o type.o load.o value.o vec.o \
  38.     char.o lexer.o parser.tab.o handler.o instance.o input.o driver.o \
  39.     table.o fd.o buf.o weak.o brkpt.o
  40. SRCS = $(patsubst %.o,%.c,$(OBJS))
  41.  
  42. LDLIBS = -lfl -lm
  43.  
  44. mindy: $(OBJS)
  45.     $(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o ,mindy
  46.     mv -f ,mindy mindy
  47.  
  48. lexer.c: lexer.l
  49.  
  50. lexer.o: lexer.c
  51.     $(subst -Wall ,,$(COMPILE.c)) $< $(OUTPUT_OPTION)
  52.  
  53. parser.tab.c: parser.y
  54.     bison -d $< -o $@
  55.  
  56. parser.tab.h: parser.tab.c
  57.  
  58. parser.tab.o: parser.tab.c
  59.     $(subst -Wall ,,$(COMPILE.c)) $< $(OUTPUT_OPTION)
  60.  
  61. clean:
  62.     rm -f ${OBJS} parser.tab.c parser.tab.h lexer.c mindy Depends
  63.  
  64.  
  65. depend: ${SRCS}
  66.     $(CC) -MM -E ${CPPFLAGS} $^ > ,depends
  67.     mv ,depends Depends
  68.  
  69. install: mindy
  70.     rm -f $(DESTDIR)/bin/mindy
  71.     cp mindy $(DESTDIR)/bin/mindy
  72.  
  73.  
  74. ifndef IGNORE_DEPENDS
  75.  
  76. Depends:
  77.     $(MAKE) depend IGNORE_DEPENDS=SET
  78.  
  79. include Depends
  80.  
  81. endif
  82.